package com.tzvtc.server.commons.security;

import com.tzvtc.server.account.bean.PermissionBean;

import java.util.HashMap;

public class SecurityLocal {

    private static final ThreadLocal<String> threadLocal = new ThreadLocal<>();
    public static  HashMap<String, PermissionBean> permissionMap = new HashMap<>();

    public static void set(String value ){
        threadLocal.set(value);
    }

    public static String get(){
        return threadLocal.get();
    }

    public static void clear(){
        threadLocal.remove();
    }

}
